//Iditarod Trail
//Amelia Bauer, Elise Eiden, Christine Gerardi, Taryn Green
//CSE 20212 2012
#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_
#include "Player.h"
#include "AreYouSureWindow.h"
#include "NameWindow.h"
#include "store.h"
#include "DeluxeDog.h"
#include "Dog.h"
#include "Map.h"
#include "textfield.h"
#include "GenericWindow.h"
#include <iostream>
#include <QWidget>
#include <QtGui>
#include <QLineEdit>
#include <QGridLayout>
#include <QLabel>
#include <QString>
#include <string>
#include <cstring>
#include <vector>

using namespace std;

class MainWindow:  public QMainWindow {
 	Q_OBJECT
 	
 	
public:
	// Constructor
	MainWindow();
	void setClicked();
	int dogSick();
	void diedWindowFcn(int);
	int checkStore();
	void updateWindow();

public slots: 
	void mapClicked();
	void playGame();
	void openNewWindow();
	void restFunction();
	void medFunction();
	void huntFunction();


protected:

private: 
	QLabel *box;
	QVBoxLayout *big_layout;
	QHBoxLayout *top_layout;
	QHBoxLayout *bottom_layout;
	QGridLayout *miles_layout;
	QGridLayout *stats_layout;
	QGridLayout *control_layout;
	QPushButton *rest, *med, *hunt, *exit;
	QLineEdit *next_miles_edit;
	QLineEdit *last_miles_edit;
	QLineEdit *days_traveled_edit;
	QLineEdit *stat1_edit;
	QLineEdit *stat2_edit;
	QLineEdit *stat3_edit;
	QTimer *timer;
	QMovie *dogrun;
	QMovie *background;

	Player *us;
	AreYouSureWindow *exitWindow;
	GenericWindow *rip, *restingWindow;
	MyTextField *setup;
	Map *mapp;
	Store * storeArr[5];
	int store[6];

	int daysToRest, index;

	vector <QLabel*> dogLabels;



};
#endif
